<div class="properties-rows agents-rows" style="padding: 5px 10px 20px;">
	<div class="row-fluid">
		<div class="w-box-search-form w-box-search-form-header">
			<h5>FIND AN EXPERT</h5>
		</div>
	</div>
	<div class="formSep">
		<div class="row-fluid">
			<div class="span12">
				<div class="content">
					<form action="<?php base_url(); ?>find-an-expert.html?" method="get" class="agent-form">
						<div class="row-fluid">
							<div class="span2">
								<label class="radio"> 
									<input type="radio" name="buyerorseller" id="buyeragent" value="buyer" <?php if(isset($buyerorseller) && $buyerorseller=="buyer") {echo 'checked="checked"';} ?>> Buyer's Agent 
								</label>
								<label class="radio"> 
									<input type="radio" name="buyerorseller" id="selleragent" value="seller" <?php if(isset($buyerorseller) && $buyerorseller=="seller") {echo 'checked="checked"';} ?>> Seller's Agent
								</label>
							</div>
							<div class="span4">
								<div class="control-group">
									<div class="controls">
										<input value="<?php echo $agentname; ?>" class="search-query form-text" placeholder="<?php echo $text_agentname_company; ?>" type="text" name="agentname">
									</div>
									<!-- /.controls -->
								</div>
								<!-- /.control group -->
							</div>
							<div class="span3">
								<div class="location control-group">
									<div class="controls">
										<select id="inputLocation" name="cities" class="span12">
										<option value="" id="all-location"><?php echo $text_all_location; ?></option>
										<?php if(count($lkup_cities) > 0) { ?>
										<?php foreach ($lkup_cities as $city) { ?>
										<option value="<?php echo $city->City_ID; ?>" <?php if(isset($cities) && $cities == $city->City_ID) {echo 'selected="selected"';} ?>><?php echo $city->Name; ?></option>
										<?php } ?>
										<?php } ?>
										</select>
									</div>
									<!-- /.controls -->
								</div>
								<!-- /.control group -->
							</div>
							<div class="span3">
								<div class="location control-group">
									<div class="controls">
										<select id="inputLocation" name="findagent" class="span12">
										<option value="" id="all-location"><?php echo $text_find_agents; ?></option>
										<option value="Brokers" id="all-location">Brokers</option>
										<option value="Managing Brokers" id="all-location">Managing Brokers</option>
										</select>
									</div>
									<!-- /.controls -->
								</div>
								<!-- /.control group -->
							</div>
						</div>
						<div class="row-fluid">
							<div class="control-group">
								<div class="controls">
									<label class="control-label">Agent Expertise</label>
								</div>
							</div>
						</div>
						<div class="formSep">
							<div class="row-fluid">
								<div class="span3">
									<div class="type control-group">
										<div class="controls">
											<select name="agentPropertyType" id="agentPropertyType" class="span12">
												<option value="" selected="selected"><?php echo $text_all_propertytype; ?></option>
												<?php if(count($dd_propertytype) > 0) {
												foreach ($dd_propertytype as $key => $value) {
													?>
												<option value="<?php echo $value->PropertyType_ID; ?>"><?php echo $value->Name; ?></option>
												<?php }
												}
												?>
											</select>
										</div>
										<!-- /.controls -->
									</div>
								</div>
								<div class="span3">
									<div class="type control-group">
										<div class="controls">
											<select name="agentSpecialties" id="agentSpecialties" class="span12">
											<option value="" selected="selected"><?php echo $text_specialities; ?></option>
											<?php if(count($specialities) > 0) {
												foreach ($specialities as $key => $value) {
													?>
											<option value="<?php echo $value->Specialty_ID; ?>"><?php echo $value->SpecialtyName; ?></option>
											<?php }
											}
											?>
											</select>
										</div>
										<!-- /.controls -->
									</div>
								</div>
								<div class="span3">
									<div class="type control-group">
										<div class="controls">
											<select name="agentPriceMin" id="agentPriceMin" class="span12">
											<option value="" selected="selected"><?php echo $text_price_min; ?></option>
											<?php if(count($pricelist) > 0) {
												foreach ($pricelist as $key => $value) {
													?>
											<option value="<?php echo $value->Value; ?>"><?php echo $value->Priceoption; ?></option>
											<?php }
											}
											?>
										</select></div>
										<!-- /.controls -->
									</div>
								</div>
								<div class="span3">
									<div class="type control-group">
										<div class="controls">
											<select name="sortbestmatch" id="sortbestmatch" class="span12">
											<option value="" selected="selected"><?php echo $text_best_match; ?></option>
											<option value="featured">Featured</option>
											<option value="sold_homes">Sold Homes</option>
											<option value="recommendations">Recommendations</option>
										</select></div>
										<!-- /.controls -->
									</div>
								</div>
							</div>
						</div>
						<div class="formSep">
							<div class="row-fluid">
								<div class="span3">
									<div class="type control-group">
										<div class="controls">
											<select name="agentCertifications" id="agentCertifications" class="span12">
											<option value="" selected="selected"><?php echo $text_certifications; ?></option>
											<?php if(count($certifications) > 0) {
												foreach ($certifications as $key => $value) {
													?>
											<option value="<?php echo $value->Certification_ID; ?>"><?php echo $value->Name; ?></option>
											<?php }
											}
											?>
										</select></div>
										<!-- /.controls -->
									</div>
								</div>
								<div class="span3">
									<div class="type control-group">
										<div class="controls">
											<select name="agentLanguages" id="agentLanguages" class="span12">
											<option value="" selected="selected"><?php echo $text_languages; ?></option>
											<?php if(count($languages) > 0) {
												foreach ($languages as $key => $value) {
													?>
											<option value="<?php echo $value->Language_ID; ?>"><?php echo $value->Name; ?></option>
											<?php }
											}
											?>
										</select></div>
										<!-- /.controls -->
									</div>
								</div>
								<div class="span3">
									<div class="type control-group">
										<div class="controls">
											<select name="agentPriceMax" id="agentPriceMax" class="span12">
											<option value="" selected="selected"><?php echo $text_price_max; ?></option>
											<?php if(count($pricelist) > 0) {
												foreach ($pricelist as $key => $value) {
													?>
											<option value="<?php echo $value->Value; ?>"><?php echo $value->Priceoption; ?></option>
											<?php }
											}
											?>
										</select></div>
										<!-- /.controls -->
									</div>
								</div>
								<div class="span3">
									<div class="type control-group">
										<div class="controls form-actions">
											<input type="submit" value="Search" class="btn btn-primary btn-large arrow-right">
										</div>
										<!-- /.controls -->
									</div>
								</div>
							</div>
						</div>
					</form>
				</div>
			</div>
		</div>
	</div>
	<!-- /.search form -->
	<div class="formSep">
		<div class="content text-center">
			<h4 style="color: #FFF;"><span style="font-weight: 700; font-size: 48px;"><?php echo $total_count; ?></span> <span>Agent(s) Found</span></h4>
		</div>
	</div>
</div>
<!-- /.properties-rows -->

